package com.heima.zuoye.day02.mianji;

public class Circle implements ShapePara {
    static final double PI = 3.14;
    public double radius;
    double a;

    @Override
    public double getArea() {
        a = PI * radius * radius;
        return a;
    }

    @Override
    public double getCircumference() {
        a = PI * 2 * radius;
        return a;
    }

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
